<fo








<div class="x-body">
  <form class="layui-form form_single" action="{:url()}" method="post">
    <div class="layui-form-item">
      <label for="name" class="layui-form-label">
        <span class="x-red">*</span>名称
      </label>
      <div class="layui-input-inline">
        <input type="text" id="name" name="name" onchange="this.value=this.value.substring(0, 30)" onkeydown="this.value=this.value.substring(0, 30)" onkeyup="this.value=this.value.substring(0, 30)"  required="" lay-verify="required"
               autocomplete="off"  value="{$info['name']|default=''}" class="layui-input">
      </div>
      <div style="color: red !important;" class="layui-form-mid layui-word-aux">
        （限制30字符）
      </div>
    </div>

    <div class="layui-form-item">
      <label for="sort" class="layui-form-label">
        排序值
      </label>
      <div class="layui-input-inline">
        <input type="number" id="sort" name="sort" value="{$info['sort']|default=''}"  lay-verify="pass"
               autocomplete="off" class="layui-input">
      </div>
      <div class="layui-form-mid layui-word-aux">
        (排序越大，顺序越前,默认0)
      </div>
    </div>


    <div class="layui-form-item">
      <label for="describe" class="layui-form-label">
        描述
      </label>
      <div class="layui-input-inline">
        <textarea id="describe" class="layui-textarea" name="describe" maxlength="80" onchange="this.value=this.value.substring(0, 80)" onkeydown="this.value=this.value.substring(0, 80)" onkeyup="this.value=this.value.substring(0, 80)"    rows="3" placeholder="请输入文章描述信息/简介">{$info['describe']|default=''}</textarea>
      </div>
      <div class="layui-form-mid layui-word-aux">
      (分类描述信息/简介)
      </div>
    </div>
    <!--<div class="layui-form-item">-->
    <!--<label class="layui-form-label">快捷操作</label>-->
    <!--<div class="layui-input-block">-->
    <!--<input type="radio" name="is_shortcut" value="1" title="是">-->
    <!--<input type="radio" name="is_shortcut" value="0" title="否" checked>-->
    <!--</div>-->
    <!--<div class="layui-form-mid layui-word-aux">-->
    <!--（若为快捷操作则会出现在后台上方顶部菜单栏）-->
    <!--</div>-->
    <!--</div>-->

    <div class="box-footer">

      <input type="hidden" name="id" value="{$info['id']|default='0'}"/>

      {include file="layout/edit_btn_group"/}

    </div>

  </form>
</div>



<script type="text/javascript">

  ob.setValue("is_hide", {$info.is_hide|default=0});
  ob.setValue("is_shortcut", {$info.is_shortcut|default=0});
  ob.setValue("pid", {$info.pid|default=0});

</script>